﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SMS
{
    public class SMSContent : IEquatable<SMSContent>
    {
		#region Constructors (2) 

        public SMSContent(System.Drawing.Bitmap type, string dest, string content, string url, string createddate)
        {
            if (type == null)
                Type = new System.Drawing.Bitmap(32, 32);
            else
                Type = type;
            if (dest == null)
                Destination = "";
            else
                Destination = dest;
            if (content == null)
                Content = "";
            else
                Content = content;
            if (url == null)
                URL = "";
            else
                URL = url;
            if (createddate == null)
                CreatedDate = "";
            else
                CreatedDate = createddate;
        }

        public SMSContent() { 
            Type = new System.Drawing.Bitmap(32,32);
            Destination = "";
            Content = "";
            URL = "";
            CreatedDate = "";
        }

		#endregion Constructors 

		#region Properties (6) 

        public string Content { get; set; }

        public string CreatedDate { get; set; }

        public string Destination { get; set; }

        public int ID { get; set; }

        public System.Drawing.Bitmap Type {get ; set;}

        public string URL { get; set; }

		#endregion Properties 

		#region Methods (1) 

		// Internal Methods (1) 

        internal bool isValid()
        {
            return Destination == null || Content == null ||
                Destination == "" || Content == "";
        }

		#endregion Methods 



        #region IEquatable<SMSContent> Members

        public bool Equals(SMSContent other)
        {
            return this.ID == other.ID;
        }

        #endregion
    }
}
